<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>开店申请</title>
    <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/mall.css" />	
</head>

<body>
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
		<h1 class="mui-title">选择店铺类型</h1>
	</header>
	<div class="mui-content">
		<div class="step1_item" style="padding-top: 3%;">
			{if $qy.state==2}
			<p class="bt" style="text-align: center;color: red;font-size: 18px;">申请审核中</p>
			{elseif $qy.state==3}
			<p class="bt" style="text-align: center;color: red;font-size: 18px;">申请未通过:{$qy.reason}</p>
			{/if}
			<ul class="step1_style">
				<li data-id="1" {if $qy.agent_type==1}class="choice"{/if}>
					<p class="sty_nam">企业经营</p>
					<p class="sty_ntip">持有限责任公司执照的商户</p>
					<div class="iconfont icon-jiaobiao1"></div>
				</li>
				<li  data-id="3" {if $qy.agent_type==3}class="choice"{/if}>
					<p class="sty_nam">个体工商户</p>
					<p class="sty_ntip">持个体工商户营业执照的商户</p>
					<div class="iconfont icon-jiaobiao1"></div>
				</li>
				<!--<li data-id="2" {if $qy.agent_type==2}class="choice"{/if}>
					<p class="sty_nam">个人</p>
					<p class="sty_ntip">暂无营业执照的自然人</p>
					<div class="iconfont icon-jiaobiao1"></div>
				</li>-->
			</ul>
			<form class="layui-form update_form">
			    <div class="xiey_group">
					<input name="checkbox" id="checkbox" value="Item 1" type="checkbox" checked="">
					<span><a href="about.html">服务协议</a></span>					
				</div>
			</form>
		</div>	
		{if !$qy||($qy.state!=1&&$qy.state!=2)}
		<button class="qiany_btn">下一步</button>
		{/if}
	</div>
</body>

</html>
{include file="public/footer" /}
<script type="text/javascript">
	$(".step1_style li").click(function(){
		$('.choice').removeClass("choice");
		$(this).addClass("choice");
	});
	$(".qiany_btn").click(function(){
		var choice=$(".choice").data("id");
		if(choice==undefined){
			layer.msg("请选择分类");
			return;
		}
		if (!$('#checkbox').is(':checked')) {
			layer.msg("服务协议未同意");
			return;
		}
		
		
		window.location="step2?agent_type="+choice;
	})
</script>


